package com.compare.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.compare.pojo.ObsCompare;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Collection;
import java.util.List;

@Mapper
public interface ObsCompareMapper extends BaseMapper<ObsCompare> {

    int updateSuccessStatus(Collection<String> collection, @Param("tableName") String tableName);

    @Select("select  * from ${tableName} limit ${limit}, ${offset}")
    List<ObsCompare> getAllList(@Param("tableName") String tableName, @Param("limit") Integer limit, @Param("offset") Integer offset);
}

